<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>HOME</title>
    <style>
        .job_name {
            color: white;
            background-color: antiquewhite;
            padding: 5px;
            border-radius: 10px;
            margin: 0;
        }
        .job_name a{
            text-decoration: none;
        }
        .job_name a:link{
            color: black;
        }
        .job_name a:visited{
            color: black;
        }
        .job_name a:hover{
            color: blue;
        }

        .introduction {
            /*background-color: aliceblue;*/
            padding: 5px;
            /*border-radius: 10px;*/
            /*margin-bottom: 10px;*/
        }
        .job_card{
            background-color: cornsilk;
            margin: 5px;
            border-radius: 10px;
            padding-bottom: 1px;
        }
        h1{
            text-align: center;
            font-family: "Times New Roman",serif;
        }
    </style>
</head>
<body>
{% if job_list %}
<h1>
    JOB LIST
</h1>

<hr>
<hr>
<ul>
    {% for elem in job_list %}
    <li class="job_card">
        <h3 class="job_name">
            <a class="job_name_link" href="{{ elem.id}}/detail" target="_blank">{{ elem.name }}</a>
        </h3>
        <small>create by {{elem.creator}}</small>
        <p class="introduction">{{ elem.introduction }}</p>
    </li>
    {% endfor %}
</ul>
{% else %}
<p>
    暂无JOB
</p>
{% endif %}
</body>
</html>
